package com.lsj.threadtest.three;

public class BRunnable extends FRunnable {
    public BRunnable(int ru){
        super(ru);
    }
    public void run(){
           while(ru>0){
               ru=ru-3;
               if(ru<=0){
                   System.out.println("b到达终点，b胜利");
               }else{
                   System.out.println("b离终点"+ru);
               }
               try {
                   Thread.sleep(1000);
               } catch (InterruptedException e) {
                   e.printStackTrace();
               }
           }

    }
}

